<?php namespace Common\Model;
use Hdphp\Model\Model;
/**
 * 使用order1表(订单表)
 */
Class Order1 extends Model{
	//引入订单表
	protected $table = 'order1';

	public function address($_POST,$uid){
		// p($_POST);
		// p($_POST['consignee']);die;
		$data = array(
			'consignee' => $_POST['consignee'],
			'address' =>$_POST['address'],
			'mobile'=>$_POST['phone'],
			'order1_uid'=>$uid
		);
		p($data);
		if(!$this->create($data,1)){
			return false;
		};
		// p($data);die;
		$this->add();
		// p($result);die;
		return true;
	}
}
?>